<html>
<head>
<title>My Blog</title>
</head>
<body>
<h1>Welcome to my Blog!</h1>
<ul>
<?php foreach ($query as $item):?>
<li>编号：<?php echo $item['id'];?></li>
<li>用户名：<?php echo $item['name'];?></li>
<?php endforeach;?>
</ul>
</body>
</html>

